package com.xu.mapper;

import com.xu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    //查询用户密码
    User queryUserById(int uid);
    //增加用户
    int addUser(User user);
    //删除用户
    int delUser(int uid);
    //修改用户
    int updUser(User user);
    //查询全部用户
    List<User> getAllUser();
}
